﻿using Microsoft.AspNet.SignalR;
using Microsoft.Owin;
using Owin;
using SignalRWeb.Hubs;
using System;
using System.Threading.Tasks;

[assembly: OwinStartup(typeof(SignalRWeb.Startup))]

namespace SignalRWeb
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            HubConfiguration config = new HubConfiguration()
            {
                EnableDetailedErrors = false, //关闭错误显示给客户端
                EnableJavaScriptProxies = false,//开启JavaScript代理
                EnableJSONP = false //关闭jsonp
            };
            app.MapSignalR(config);
        }
    }
}
